//
//  ToOCViewController.m
//  swift各类控件集锦
//
//  Created by iosdev1 on 2017/4/21.
//  Copyright © 2017年 zyy. All rights reserved.
//

#import "ToOCViewController.h"
#import <SwiftLearnAll-Swift.h>

@interface ToOCViewController ()

@end

@implementation ToOCViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    UIButton *btn = [[UIButton alloc]initWithFrame:CGRectMake(100, 100, 100, 100)];
    [self.view addSubview:btn];
    [btn setTitle:@"occallswift" forState:UIControlStateNormal];
    [btn addTarget:self action:@selector(OCCallSwift) forControlEvents:UIControlEventTouchUpInside];

    
}

- (void)OCCallSwift{
    OCCallSwiftViewController *oc = [[OCCallSwiftViewController alloc]init];
    [oc OCCallSwift];
    [self.navigationController pushViewController:oc animated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
